﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="HtmlForm.ascx.cs" Inherits="Website.Views.PageTitle.HtmlForm" %>
<form action="/page" method="post" enctype="application/x-www-form-urlencoded">
    <div>
        <input type="hidden" id="title" name="title" value="<%=this.ViewData.Model.Title %>" />
        <label for="body"><em class="error"><%=HttpUtility.HtmlEncode(this.ViewData.Model.Errors["body"]) %></em></label>
        <textarea tabindex="2" id="body" name="body" accesskey="b" rows="25" cols="80" title="Enter the page body [alt-b]"><%=this.ViewData.Model.Body %></textarea>
    </div>
    <div>
        <input tabindex="3" type="submit" id="save" accesskey="c" value="Create Page" title="Create the new page [alt-c]" />
    </div>
</form>